from gen import generate_test_data
from alg import Solution  # 假设你的解决方案保存在solution.py文件中

def test_removeInvalidParentheses():
    solution = Solution()
    test_data = generate_test_data()
    
    for i, s in enumerate(test_data):
        print(f"Running test case {i+1}:")
        print(f"s = {s}")
        
        result = solution.removeInvalidParentheses(s)
        print(f"Result = {result}")
        print()

if __name__ == "__main__":
    test_removeInvalidParentheses()
